//
//  KDSwiftTest.swift
//  demo
//
//  Created by 叶青 on 15/9/14.
//  Copyright (c) 2015年 naruto. All rights reserved.
//

import UIKit
@objc(KDSwiftTest)
class KDSwiftTest: NSObject {
    let _param1 :Int=18;
    var _param2 :Double = 19.0;
    
    
    override init() {
        super.init();
        _param2=20.0;
        NSLog("KDSwiftTest init,\(_param1),\(_param2)");
    }
    
    
    func test(param1:Int, withParam2:String){
        _param2 = 21.0;
//        _param1 = _param1+1;
        let strTemp:String = "Green";
        var listTmp:Array = ["12",34723,1212.9,"test"] as [Any];
        var dictTmp:Dictionary = ["key1":"value1","key2":"value2"];
        
        if listTmp.count>0{
            listTmp[0]="value1";
        }
        NSLog("KDSwiftTest test,\(_param1),\(_param2),\(strTemp),\(listTmp[0]),%@",dictTmp["key1"]!);
        
        let tupleTmp=("value1",12);
        NSLog("\(tupleTmp.0)");
        
    }
    
    deinit{
        print("KDSwiftTest deinit");
    }
}
